package lex.netant;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.WindowConstants;

public class NetAnt {
	public static void main(String args[]) {
		final NetAntMainFrame ant = new NetAntMainFrame("javaants");
		ant.setSize(600, 410);
		ant.setLocationRelativeTo(null);
		ant.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		ant.addWindowListener(new WindowAdapter() {
			public void windowClosed(WindowEvent e) {
				ant.dispose();
				System.exit(0);
			}
		});
		ant.setVisible(true);
	}
}
